.custom-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 卡片变体 */
.card-default {
  background: rgba(255, 255, 255, 0.1);
}

.card-primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: rgba(102, 126, 234, 0.3);
}

.card-secondary {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 36, 0.2));
  border-color: rgba(255, 107, 107, 0.3);
}

.card-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(69, 160, 73, 0.2));
  border-color: rgba(76, 175, 80, 0.3);
}

.card-warning {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 193, 7, 0.2));
  border-color: rgba(255, 152, 0, 0.3);
}

.card-danger {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(229, 57, 53, 0.2));
  border-color: rgba(244, 67, 54, 0.3);
}

/* 卡片头部 */
.card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffd700;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.card-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* 卡片内容 */
.card-content {
  padding: 0 1.5rem 1.5rem;
  color: white;
}

/* 卡片变体样式 */
.card-primary .card-title {
  color: #667eea;
}

.card-secondary .card-title {
  color: #ff6b6b;
}

.card-success .card-title {
  color: #4caf50;
}

.card-warning .card-title {
  color: #ff9800;
}

.card-danger .card-title {
  color: #f44336;
}

/* 可点击卡片 */
.custom-card[onClick] {
  cursor: pointer;
}

.custom-card[onClick]:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 卡片内容样式 */
.card-content h1,
.card-content h2,
.card-content h3,
.card-content h4,
.card-content h5,
.card-content h6 {
  color: #ffd700;
  margin-top: 0;
  margin-bottom: 1rem;
}

.card-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-content ul,
.card-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.card-content li {
  margin-bottom: 0.5rem;
}

.card-content code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.card-content pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.card-content pre code {
  background: none;
  padding: 0;
}

/* 卡片内的按钮组 */
.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .custom-card {
    margin: 1rem 0;
  }
  
  .card-header {
    padding: 1rem 1rem 0;
  }
  
  .card-content {
    padding: 0 1rem 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-actions {
    flex-direction: column;
  }
}

/* 动画效果 */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-card {
  animation: cardFadeIn 0.5s ease-out;
}

/* 卡片网格布局 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 卡片列表布局 */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 特殊卡片样式 */
.card-elevated {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-elevated:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card-bordered {
  border-width: 2px;
}

.card-rounded {
  border-radius: 20px;
}

.card-flat {
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

.card-flat:hover {
  background: rgba(255, 255, 255, 0.1);
} 